
<ol class="breadcrumb" style="margin-bottom:8px">
  <li><a href="/tree/">root</a></li>
<#assign lj="/" />
<#list paths as p>
    <#assign lj=lj+"/"+p />
    <#if p_has_next>
      <li><a href="/tree${lj}">${p}</a></li>
    <#else>
      <li class="active">${p}</li>
    </#if>
</#list>
</ol>

<div class="row">
  <div class="col-xs-9">
    <div class="panel panel-default">
      <div class="panel-heading panel-heading-lg">
        <i class="fa fa-code"> </i>${full_profile_name}
        <div class="pull-right">
          <#if (editEnable!false)>
          <button class="btn btn-default" onclick="save()">保存</button> &nbsp;
          <#else>
          <a class="btn btn-default" href="/edit/${full_profile_name}">编辑</a> &nbsp;
          <a class="btn btn-default" href="/edit2/${full_profile_name}">对比</a> &nbsp;
          <a class="btn btn-default" href="/commits/${full_profile_name}">历史</a> &nbsp;
          <a class="btn btn-default" href="/perm/${full_profile_name}">权限</a> &nbsp;
          </#if>
        </div>
      </div>
      <div class="panel-body" id="thecode_body">
        <div id="thecode"></div>
      </div>
    </div>
  </div>
  <div class="col-xs-3">
    <div class="list-group">
    <#list env_has as d>
      <a href="/view/${d.fullProfileName}"
         class="list-group-item <#if d.actived>active</#if>">
          <#if d.has>
            <span class="badge"><i class="fa fa-fw fa-check"></i></span>
          </#if>
          ${d.caption}&nbsp;<#if d.name!=''>(${d.name})</#if>
      </a>
    </#list>
    </div>
  </div>
</div>